import java.util.*;
public class HuiWen {
    public static void main(String[] args) {
/*
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int n=reader.nextInt();
        int y=0;
        int z=n;
        if (n<0) {
            System.out.println(false);
            return;
        }
        while (n!=0){
            int x=n%10;
             y=x+y*10;
             n/=10;
        }
        if (y==z){
            System.out.println(true);
        }
        else {
            System.out.println(false);
        }*/
        //int str = 123;
       // String str1=Integer.toString(str);
        String str1="love";
        String str2 = str1;
        str1 = new StringBuffer(str1).reverse().toString();
        System.out.println(str1);
        System.out.println(str2);
        if (str1.equals(str2)) {
            System.out.println(true);
        } else {
            System.out.println(false);
        }
    }
}



